<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<head>
	<sx:head cache="true" />

	<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css" type="text/css" />
</head>

<s:form action="MeetingAction_list" cssClass="formClass" >
	
	<s:label name="selectedMentorName" label="%{getText('mentor')}" />
	<s:label name="selectedEmployeeName" label="%{getText('mentee')}" /> 
	<s:label name="meetingDate" label="%{getText('meetingDate')}" /> 
	<s:label name="selectedStatus" label="%{getText('status')}" /> 
	<s:label name="delay" label="%{getText('delay')}" /> 
	
	<s:if test="hasPermission(permissionNameConverter.getMeetingCheckedByHRPermission())" >
		<s:label name="checkerHRName" label="%{getText('checkedByHR')}"/>
	</s:if>
	
	<span class="pageLink" style="position:relative; left:350px; top:50px;" >
		<s:if test="hasPermission(permissionNameConverter.getEditMeetingPermission())" >
			<s:url var="edit_action" action="MeetingAction_editMeeting" namespace="/hrs2" >
				<s:param name="requestId" value="id"></s:param>
			</s:url>
    		<s:a href="%{#edit_action}" ><s:text name="action.edit"/></s:a>
    	</s:if>
    	<br><br>
    	<s:if test="hasPermission(permissionNameConverter.getGenerateMeetingsDetailReportPermission())" >
			<s:url var="details_report" action="MeetingDetailsReportAction" namespace="/hrs2" >
				<s:param name="requestId" value="id"></s:param>
			</s:url>
    		<s:a href="%{#details_report}" ><s:text name="report.generate"/></s:a>
    	</s:if>
    </span>
	
<s:if test="%{isPerformed}">
	<table width="67%">
		<tr>
			<td colspan="2">
				<display:table name="meeting.noteThemes" defaultsort="3" defaultorder="descending" requestURI="MeetingAction_showDetails" class="listable" cellpadding="0" cellspacing="0" pagesize="10" >
					<display:column property="name" titleKey="topic" sortable="true" />
					<display:column property="type" titleKey="type" sortable="true" />
					<display:column property="priority" titleKey="priority" sortable="true" />
				</display:table>
			</td>
		</tr>
	</table>
		
	<table width="67%">
		<tr>
			<td colspan="2">
				<display:table name="meeting.actionsToDo" defaultsort="3" defaultorder="descending" requestURI="MeetingAction_showDetails" class="listable" cellpadding="0" cellspacing="0" pagesize="10" >
					<display:column property="name" titleKey="action" sortable="true" />
				</display:table>
			</td>
		</tr>
	</table>
</s:if>

	<table width="40%">
		<tr>
			<td width="36%">
				<div id="btnHolder">
					<s:submit key="button.ok" cssClass="btn"
						id="okbtn" cssStyle="position:relative; left:-100px; top:20px; text-align: center;" />
				</div>
			</td>
		</tr>
	</table>
	
</s:form>